package cn.sh.library.mgts.base;

public enum ResponseCodeEnums {
	
	SUCCESS("200", "操作成功"),

    BAD_REQUEST("400","请求无效"),
    NOT_FOUND("404","找不到请求路径"),
    NOT_ALLOWED("405","请求方法不支持"),

    SERVER_ERROR("10000","服务器异常"),
    AUTH_ERROR("10001","认证失败"),
    PARAMS_ERROR("10002","参数错误"),
    JSON_PARSE_ERROR("10003","Json解析错误"),
    DATABASE_ERROR("10004","数据库错误"),
    CONNECTION_ERROR("10005","连接错误"),
    ILLEAGAL_STRING_ERROR("15001","非法字符串"),
    UNKNOW_ERROR("16000","未知错误"),
	
	EMPTY_INSPECTION_ERROR("17000","不支持空检"),
	NO_FIELD_ERROR("18000","不支持该字段检索"),
	NO_EXPRE_FIELD_ERROR("18001","表达式包含未知字段");


	
	private String code;
	private String msg;

	private ResponseCodeEnums(String code, String msg) {
 
		this.code = code;
		this.msg = msg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
